package tech.anzhen.simple.rpc.support.rest;


import tech.anzhen.simple.rpc.support.exception.RemoteException;

@SuppressWarnings("serial")
public class RestException extends RemoteException {

    private String code;

    public RestException(String message, Throwable cause, String code) {
        super(message, cause);
        this.code = code;
    }

    public RestException(String message, Throwable cause) {
        super(message, cause);
    }

    public RestException(String message, String code) {
        super(message);
        this.code = code;
    }

    public RestException(String message) {
        super(message);
    }

    public RestException(Throwable cause) {
        super(cause);
    }

    public RestException(Throwable cause, String code) {
        super(cause);
        this.code = code;
    }

    public RestException() {

    }

    public String getCode() {
        return code;
    }

}
